<?php

class Application_Form_Usuarios extends Zend_Form
{

    public function init()
    {
        $this->setAttrib('id', 'frmUsuarios')
    		 ->setMethod('post')
    		 ->setAction('/login/');
    	
    	$this->addElement('hidden', 'id_usuarios');
    	
    	$this->addElement('text', 'nombre', array(
            'label'      => 'Nombre:',
            'required'   => true,
            'filters'    => array('StringTrim'),
    		'size'		 => 40            
        ));
        
        $this->addElement('text', 'login', array(
            'label'      => 'Usuari:',
            'required'   => true,
            'filters'    => array('StringTrim'),
    		'size'		 => 20            
        ));
        
        $this->addElement('password', 'password', array(
            'label'      => 'Password:',
            'required'   => false,
            'filters'    => array('StringTrim'),
        	'size'		 => 20             
        ));
    		 
    	$this->addElement('submit', 'submit', array(
        	'ignore'   => true,
        	'label'    => 'Accedir',
        ));
    }
}